package com.suxin.plugin.intergration.manager.loader;

import java.nio.file.Path;

/**
 * @author Tang
 * @classname PluginLoader
 * @description [ 插件的加载器 ]
 * @date 2022/6/26 23:24
 */
public interface PluginLoader {

    /**
     * isApplicable
     * @param pluginPath
     * @return
     */
    boolean isApplicable(Path pluginPath);

    /**
     * loadPlugin
     * @param pluginPath
     * @return
     */
    ClassLoader loadPlugin(Path pluginPath);

}
